{% extends "base.html" %}
{% from "security/_macros.html" import render_field_with_errors, render_field %}
{% block content %}

    <h1>Change password</h1>
    <form action="{{ url_for_security('change_password') }}" method="POST" name="change_password_form">
      {{ change_password_form.hidden_tag() }}
      {{ change_password_form.csrf_token }}
      {{ wtf.form_errors(change_password_form, hiddens="only") }}

      {{ wtf.form_field(change_password_form.password) }}
      {{ wtf.form_field(change_password_form.new_password) }}
      {{ wtf.form_field(change_password_form.new_password_confirm) }}
      <div class="controls">
          {{ wtf.form_field(change_password_form.submit) }}
      </div>
    </form>

    {% include "security/_menu.html" %}
{% endblock %}
